# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: team/gnome <pabloyoyoista@postmarketos.org>
pkgname=gnome-initial-setup
pkgver=47.1
pkgrel=0
pkgdesc="A simple, easy,and safe way to prepare a new system"
url="https://gitlab.gnome.org/GNOME/gnome-initial-setup"
# limited by gnome-shell
arch="all !armhf !s390x"
license="GPL-2.0-or-later"
depends="
	dbus:org.freedesktop.Secrets
	gsettings-desktop-schemas
	iso-codes
	"
makedepends="
	accountsservice-dev
	cheese-dev
	fontconfig-dev
	ibus-dev
	krb5-dev
	meson
	networkmanager-dev
	polkit-dev
	gdm-dev
	geoclue-dev
	geocode-glib-dev>=3.26.4-r1
	gnome-desktop-dev
	gnome-online-accounts-dev
	gtk4.0-dev
	libadwaita-dev
	libgweather4-dev
	libnma-dev
	libpwquality-dev
	libsecret-dev
	rest1-dev
	webkit2gtk-6.0-dev
	"
options="!check" # no tests
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/gnome-initial-setup/${pkgver%%.*}/gnome-initial-setup-$pkgver.tar.xz"

build() {
	abuild-meson \
		-Db_lto=true \
		-Dsystemd=false \
		. output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
122e2c1541afe48c91ffe3e5958713b8943c87183c3208f8d3c617ff812438ce909123e66497cabbc13d809c6f0a94468453708fac6dd70aea50eda74fbe2ad6  gnome-initial-setup-47.1.tar.xz
"
